//
//  MTTopicHeaderTableViewCell.m
//  MotorTravel
//
//  Created by zk on 16/9/12.
//  Copyright © 2016年 zk. All rights reserved.
//

#import "MTTopicHeaderTableViewCell.h"

@interface MTTopicHeaderTableViewCell ()
<InformationCategoryScrollViewDelegate>

@end

@implementation MTTopicHeaderTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configWithImageArray:(NSArray *)imageArray CategoryArray:(NSMutableArray *)categoryArray {
    self.categoryView.cateDelegate = self;
    [self.categoryView ConfigCategaryWithDatasource:categoryArray];
    if (imageArray.count > 0) {
        self.cycleScrollView.imageURLStringsGroup = imageArray;
        self.cycleScrollView.pageControlAliment = SDCycleScrollViewPageContolAlimentRight;
    }
}

#pragma mark - InformationCategoryScrollViewDelegate

- (void)buttonClickWithCateId:(NSInteger)cateId {
    
//    self.cateId = self.newsCategoryListArray[cateId][@"cate_id"];
//    if ([self.newsDictionary objectForKey:self.cateId]) {
//        self.newsListArray = [self.newsDictionary[self.cateId] mutableCopy];
//        [self.InformationTableVIew reloadData];
//    } else {
//        [self newsListWith:self.cateId];
//    }
}

@end
